<template>
  <div class="main">
    <div class="loginPage">
      <div class="logo">
        <div class="imgBox">
          <img src="../../../static/images/logo.png" alt="">
        </div>
      </div>
      <div class="btn">
        <div class="tips">您还没有登录</div>
        <div class="btnText" @click="goLogin">去登陆</div>
      </div>
    </div>
  </div>

</template>

<script>
export default {
  data () {
    return {
      loginFlag: false
    }
  },
  onLoad () {
    this.loginFlag = wx.setStorageSync('islogin') ? wx.setStorageSync('islogin') : false
    wx.switchTab({
      url: '/pages/index/main'
    })
  },
  methods: {
    goLogin () {
      // this.loginFlag = true
      wx.navigateTo({url: '../phoneLogin/main'})
      console.log('去登陆2333')
    }
  }
}
</script>

<style scoped>
.main{
  width: 100%;
  height: 100%;
  background: #c62f2f;
}
.loginPage{
  width: 100%;
  height: 100%;
}
.logo{
  display: flex;
  height: 60%;
  justify-content: center;
  align-items: center;
}
.imgBox{
  width: 250rpx;
  height: 250rpx;
}
.imgBox img{
  width: 100%;
  height: 100%;
}
.btn{
  display: flex;
  height: 40%;
  color: #fff;
  justify-content: center;
  flex-flow: column;
  align-items: center;
}
.tips{
  font-size: 22rpx;
}
.btnText{
  width: 180rpx;
  height: 60rpx;
  margin-top: 15rpx;
  line-height: 60rpx;
  text-align: center;
  font-weight: bold;
  border:1px solid #fff;
  border-radius: 30rpx;
  cursor: pointer;
}
</style>
